import { onMounted, ref } from 'vue';
import { getBannerImg } from '@/api/home';
export const useBanner =  () => {
  const bannerList = ref([])
  onMounted(async () => {
    // 获得轮播图图片
    const res = await getBannerImg({ distributionSite: '2' })
    bannerList.value = res.data.result
  })
  return {
    bannerList
  }
}